/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trial.util;

/**
 *
 * @author feifei
 */

import trial.entity.Item;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;



@XmlRootElement
@XmlType(name = "productSet", propOrder = {
    "label",
    "count",
    "items",
})

public class itemSet implements Serializable
{    
    private String label;
    private Integer count;
    private List<Item> items;

    
    
    public itemSet()
    {
        items = new ArrayList<Item>();
    }

    
    
    public itemSet(String label, Integer count)
    {
        this();
        
        this.label = label;
        this.count = count;
    }
    
    
    
    public itemSet(String label, Integer count, List<Item> products)            
    {        
        this.label = label;
        this.count = count;
        this.items = products;
    }

    
    
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<Item> getItems() {
        return items;
    }
    
    public void setItems(List<Item> products) {
        this.items = products;
    }   
}
